<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <div class="breadcrumb_wrap">
        <ul class="breadcrumb">
            <li>您的位置：</li>
            <li> <a href="product_list.html">产品管理</a> <span class="divider">></span> </li>
            <li> <a href="product_type_list.html">产品类型</a> <span class="divider">></span> </li>
            <li class="active">列表</li>
        </ul>
    </div>
    <ul id="myTab" class="nav nav-tabs pro_nav_tabs">
        <!--<li> <a href="product_list.html" >产品信息</a> </li>-->
        <li  class="active"> <a href="product_type_list.html">产品类型</a> </li>
    </ul>
    <div class="button_box table_btn_box">
        <button type="button" class="btn btn-primary btn_add" ng-click="addGTypeFun()"><i class="glyphicon glyphicon-plus"></i>新增</button>
    </div>
    <div class="table-responsive con_list">
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>类型</th>
                    <th>标题</th>
                    <th>价格</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="gtype in gtypeList">
                    <td>{{$index+1}}</td>
                    <td>{{gtype.goodKind==1?"商品":"旧物"}}</td>
                    <td><p>{{gtype.typeName}}</p></td>
                    <td><p>{{gtype.price}}</p></td>
                    <td><span class="state" ng-if="gtype.ifUse=='1'">启用</span><span class="state down" ng-if="gtype.ifUse=='0'">关闭</span></td>
                    <td class="ops">
                        <a href="#"><button type="button" class="btn btn-primary" ng-click="updateGTypeFun(gtype)">修改</button></a>
                        <button type="button" class="btn btn-primary" ng-click="enableGtypeFun(gtype)">启用</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>